//
//  AutoSizeModel.h
//  TouGuApp
//
//  Created by tianshikechuang on 16/7/11.
//  Copyright © 2016年 tianshikechuang. All rights reserved.
//


#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@class CommModel;

#define OriginOfView(view) (view).bounds.origin
#define SizeOfView(view) (view).bounds.size
#define WidthOfView(view) (view).bounds.size.width
#define HeightOfView(view) (view).bounds.size.height


@interface AutoSizeModel : NSObject

//用户头像
@property(nonatomic, strong) NSString * icon;
//用户昵称
@property(nonatomic, strong) NSString * name;
//是否为热度
@property(nonatomic, assign) BOOL isHot;
//文字
@property(nonatomic, strong) NSString * contentText;
//文字字体
@property(nonatomic, strong) UIFont * contentTextFont;
//图片
@property(nonatomic, strong) NSArray * contentImages;
//点赞
@property(nonatomic, strong) NSString * Zang;
//评论
@property(nonatomic, strong) NSString * Pinlun;
//分享
@property(nonatomic, strong) NSString * Fenxian;
// 总个cell的高度 
@property(nonatomic, assign) CGFloat totalHeight;
//整个文字所占尺寸大小
@property(nonatomic, assign) CGSize contentTextSize;
//图片所占文字大小
@property(nonatomic, assign) CGSize contentImageSize;
//id
@property(nonatomic, strong) NSString * p_id;
//日期
@property(nonatomic, strong) NSString * p_date;

@property(nonatomic, strong) CommModel * model;

+ (AutoSizeModel *)tranfromByCommModel:(CommModel *)model;


@end
